# Create your views here.
from django.shortcuts import render_to_response
from django.template import RequestContext 
from lab.userpanel.models import Profile

def people_list(request):
	faculty = Profile.objects.filter(occupation=1)
	phd = Profile.objects.filter(occupation=2)
	master = Profile.objects.filter(occupation=3)
	alumni = Profile.objects.filter(occupation=4)
	return render_to_response('userpanel/people_list.html',{'faculty_list':faculty, 'phd_list':phd, 'master_list':master, 'alumni_list':alumni}, context_instance=RequestContext(request))